<template>
  <h2>{{fullName}}</h2>
</template>
<script>
export default {
  data () {
    return {
      firstName: 'kobe',
      lastName: 'Bryant'
    }
  },
  computed:{
      fullName:function () {
        console.log("fullName");
        return this.firstName + ' ' + this.lastName;
      }
  },
  methods:{
      getFullName:function () {
        console.log("getFullName");
        return this.firstName + ' ' + this.lastName;
      }
  }
}
</script>
